<!--
 * @author: Archy
 * @Date: 2022-05-07 10:29:02
 * @LastEditors: Archy
 * @LastEditTime: 2022-06-01 11:51:13
 * @FilePath: \arhooks\vue\App.vue
 * @description: 
-->
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import test from './components/test'
import { ref } from 'vue'
import { useTitle } from '../packages/arhooks-vue/src'
const visible = ref(false)
setTimeout(()=>{
  visible.value = true
})
setTimeout(() => {
  visible.value = false
}, 5000)
const [title, setTitle] = useTitle('首页')
</script>

<template>
  <img alt="Vue logo" src="./assets/logo.png" />
  <test v-if="visible"></test>
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
